package org.ch00.test04.demo03;

/**
 * @author CSY
 * @date 2025 - 03 - 03
 */
public class Instrument {
    private String brand;
    private double price;

    public Instrument() {}

    public Instrument(String brand, double price) {
        this.brand = brand;
        this.price = price;
    }

    public void sound(){
        System.out.println("发出声音...");
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
}
